<#if reportModel?? && reportModel.modelPackageList??>
<#list reportModel.modelPackageList as pkg>
<div class="comp <#if pkg.pkglayout==true>layout</#if>" data-id="${pkg.id!''}" id="comp_${pkg.id!''}" <#if pkg_index gt 0>style="margin-top:10px;"</#if>>
	<#if pkg.pkgtype?? && pkg.pkgtype = 'chart'>
	<div style="width:100%;background-color: #FEFEFE; height:100%;"  id="chart_${pkg.id!''}" data-id="${pkg.id!''}">
	<script language="javascript">
		$(document).ready(function(){
			$('#chart_${pkg.id!''}').height( $('#comp_${reportModel.id!''}').height() - 31);
		});
	</script>
	<#else>
	<div id="pkg_${reportModel.id!''}" data-id="${pkg.id!''}" class="pkg_model">
	</#if>
	<#if pkg.templet?? && pkg.templet.templettext??>
		<#assign dt = pkg>
		<#assign inlineTemplate = pkg.templet.templettext?interpret>
		<@inlineTemplate /> 
	</#if>					
	</div>	
</div>
</#list>
</#if>		